<?php

namespace Mediacosmos\ConsultationBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Vote
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Mediacosmos\ConsultationBundle\Entity\VoteRepository")
 */
class Vote
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;
    
    /**
     * @ORM\ManyToOne(targetEntity="Mediacosmos\ConsultationBundle\Entity\Battle")
     * @ORM\JoinColumn(nullable=false)
     */
    private $battle;

    /**
     * @ORM\ManyToOne(targetEntity="Mediacosmos\UserBundle\Entity\Member")
     * @ORM\JoinColumn(nullable=false)
     */
    private $membre;
    
    /**
     * @ORM\ManyToOne(targetEntity="Mediacosmos\UserBundle\Entity\Artist")
     * @ORM\JoinColumn(nullable=false)
     */
    private $artist;

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set battle
     *
     * @param \Mediacosmos\ConsultationBundle\Entity\Battle $battle
     * @return Vote
     */
    public function setBattle(\Mediacosmos\ConsultationBundle\Entity\Battle $battle)
    {
        $this->battle = $battle;

        return $this;
    }

    /**
     * Get battle
     *
     * @return \Mediacosmos\ConsultationBundle\Entity\Battle 
     */
    public function getBattle()
    {
        return $this->battle;
    }

    /**
     * Set membre
     *
     * @param \Mediacosmos\UserBundle\Entity\Member $membre
     * @return Vote
     */
    public function setMembre(\Mediacosmos\UserBundle\Entity\Member $membre)
    {
        $this->membre = $membre;

        return $this;
    }

    /**
     * Get membre
     *
     * @return \Mediacosmos\UserBundle\Entity\Member 
     */
    public function getMembre()
    {
        return $this->membre;
    }

    /**
     * Set artist
     *
     * @param \Mediacosmos\UserBundle\Entity\Artist $artist
     * @return Vote
     */
    public function setArtist(\Mediacosmos\UserBundle\Entity\Artist $artist)
    {
        $this->artist = $artist;

        return $this;
    }

    /**
     * Get artist
     *
     * @return \Mediacosmos\UserBundle\Entity\Artist 
     */
    public function getArtist()
    {
        return $this->artist;
    }
}
